package com.jack.design_patterns.creational.builder.chain;

/**
 * 具体的建造者：可以建造出魅族手机
 */
public class MeizuBuilder extends AbstractBuilder {

    public MeizuBuilder() {
        phone = new Phone();
    }

    @Override
    AbstractBuilder customizeCpu(String cpu) {
        phone.setCpu(cpu);
        return this;
    }

    @Override
    AbstractBuilder customizeDisk(String disk) {
        phone.setDisk(disk);
        return this;
    }

    @Override
    AbstractBuilder customizeMemory(String memory) {
        phone.setMemory(memory);
        return this;
    }

    @Override
    AbstractBuilder customizeCamera(String camera) {
        phone.setCamera(camera);
        return this;
    }
}
